package com.example.yls.demoa;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;

/**
 * Created by yls on 2018/11/12.
 */

public class LowPriorityReceiver extends BroadcastReceiver{

    @Override
    public void onReceive(Context context, Intent intent) {
        String action = intent.getStringExtra("Action");
        Bundle bundle = getResultExtras(false);
        String address = (String) bundle.get("ADD");
        bundle.putInt("NUM",10);
        setResultExtras(bundle);

        Log.e("LowPriorityReceiver",
                "Action:"+action+"  Address:"+address);
    }
}
